#include "accountitem.h"
#include "ui_accountitem.h"

AccountItem::AccountItem(QWidget *parent):
    QWidget(parent),
    ui(new Ui::AccountItem)
{
    ui->setupUi(this);
}

//AccountItem::AccountItem(AccountInfo info, QWidget *parent) :
//    QWidget(parent),
//    ui(new Ui::AccountItem)
//{
//    ui->setupUi(this);
//    this->info = info;
//}

AccountItem::~AccountItem()
{
    delete ui;
}

void AccountItem::updateData()
{
    this->ui->host->setText(QString(info.host.c_str()));
    this->ui->username->setText(QString(info.username.c_str()));
}
